#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
@FileName  :test1111.py 
@desc      :
@Author    :Young
@IDE       :PyCharm
@Time      :2022-10-14 15:32
'''

# str1 =  input()
# length = len(str1)
# list1 = []
# for i in range(length):
#     list1.append(int(str1[i]))
# list1.sort()
# for i in range(length):
#     print(list1[i],end="")

speech = [3,3,4,5,6,1,1,3,5]
dic = {}
for word in speech:
    if word not in dic:
        dic[word] = 1
    else:
        dic[word] = dic[word] + 1
swd = sorted(dic.items(),key=operator.itemgetter(1),reverse=True)